<?php

namespace backend\controllers;

use builder\base\BaseController;
use yii\web\ForbiddenHttpException;

/**
 * 关停站点
 */
class ShutdownController extends BaseController
{
    /**
     * @var array
     */
    public $publicActions = [
        'index'
    ];

    /**
     * {@inheritdoc}
     */
    public function actions()
    {
        $this->layout = 'blank';
        $this->app->errorHandler->exception = new ForbiddenHttpException('系统临时关停，程序员紧急修复中，请耐心等待。');
        return [
            'index' => [
                'class' => 'yii\web\ErrorAction',
                'view' => '/error/index',
            ]
        ];
    }
}